﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="upload-ebook.aspx.cs" Inherits="DeansWsccProject.upload_ebook" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    Title: <asp:TextBox ID="tbEBookTitle" runat="server"></asp:TextBox>
    <ajaxToolkit:RoundedCornersExtender ID="tbEBookTitle_RoundedCornersExtender" runat="server" Enabled="True" TargetControlID="tbEBookTitle">
    </ajaxToolkit:RoundedCornersExtender>
    <asp:RequiredFieldValidator ID="tbEBookTitleRequiredFieldValidator" runat="server" ErrorMessage="Please enter your eBook title" ControlToValidate="tbEBookTitle"></asp:RequiredFieldValidator>
    <br />
    Description:
    <br />
    <asp:TextBox ID="tbEBookDescription" runat="server" TextMode="MultiLine"></asp:TextBox>
    <ajaxToolkit:RoundedCornersExtender ID="tbEBookDescription_RoundedCornersExtender" runat="server" Enabled="True" TargetControlID="tbEBookDescription">
    </ajaxToolkit:RoundedCornersExtender>
    <asp:RequiredFieldValidator ID="tbEBookDescriptionRequiredFieldValidator" runat="server" ErrorMessage="Please enter a description of your eBook" ControlToValidate="tbEBookDescription"></asp:RequiredFieldValidator>
    <br />
    Upload e-book image: <asp:FileUpload ID="fuEBookJpg" runat="server" />
    <ajaxToolkit:RoundedCornersExtender ID="fuEBookJpg_RoundedCornersExtender" runat="server" Enabled="True" TargetControlID="fuEBookJpg">
    </ajaxToolkit:RoundedCornersExtender>
    <br />
    Upload e-book pdf: <asp:FileUpload ID="fuEBookPdf" runat="server" />
    <ajaxToolkit:RoundedCornersExtender ID="fuEBookPdf_RoundedCornersExtender" runat="server" Enabled="True" TargetControlID="fuEBookPdf">
    </ajaxToolkit:RoundedCornersExtender>
    <asp:RequiredFieldValidator ID="fuEBookPdfRequiredFieldValidator" runat="server" ErrorMessage="Please upload your eBook" ControlToValidate="fuEBookPdf"></asp:RequiredFieldValidator>
    <br />
    Add Co-Authors: <asp:ListBox ID="lbCoAuthors" runat="server" DataTextField="UserId" DataValueField="UserId" SelectionMode="Multiple" Rows="1"></asp:ListBox>
    <ajaxToolkit:RoundedCornersExtender ID="lbCoAuthors_RoundedCornersExtender" runat="server" Enabled="True" TargetControlID="lbCoAuthors">
</ajaxToolkit:RoundedCornersExtender>
    <br />
    <asp:Button ID="btnUploadEBook" runat="server" Text="Submit" OnClick="btnUploadEBook_Click" />
    <ajaxToolkit:RoundedCornersExtender ID="btnUploadEBook_RoundedCornersExtender" runat="server" Enabled="True" TargetControlID="btnUploadEBook">
    </ajaxToolkit:RoundedCornersExtender>
</asp:Content>
